<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$CONF['mallTitle']}后台管理中心</title>
    <link href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="__CSS__/AdminLTE.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 9]>
    <script src="__PUBLIC__/js/html5shiv.min.js"></script>
    <script src="__PUBLIC__/js/respond.min.js"></script>
    <![endif]-->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <script src="__PUBLIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/common.js"></script>
    <script src="__PUBLIC__/plugins/plugins/plugins.js"></script>
    <style>
        td{text-align:center}
    </style>
</head>
<script>
    function del(id){
        Plugins.confirm({title:'信息提示',content:'您确定要删除吗?',okText:'确定',cancelText:'取消',okFun:function(){
            Plugins.closeWindow();
            Plugins.waitTips({title:'信息提示',content:'正在操作，请稍后...'});
            $.post("{:U('Admin/Suggest/delete')}",{id:id},function(data,textStatus){
                var json = WST.toJson(data);
                if(json.status=='1'){
                    Plugins.setWaitTipsMsg({content:'操作成功',timeout:1000,callback:function(){
                        location.reload();
                    }});
                }else{
                    Plugins.closeWindow();
                    Plugins.Tips({title:'信息提示',icon:'error',content:'操作失败!',timeout:1000});
                }
            });
        }});
    }
</script>
<body class='wst-page'>

    <table class="table table-hover table-striped table-bordered wst-list" >
        <thead>
        <tr>
            <th width='' style="text-align:center;">序号</th>
            <th width='300' style="text-align:center;">用户名</th>
            <th style="text-align:center;">联系方式</th>
            <th width='' style="text-align:center;">用户建议</th>
            <th width='' style="text-align:center;">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="Page['root']" id="vo" key='i'>
            <tr>
                <td>{$i}</td>
                <td>{$vo.userName}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.content}</td>
                <td><a href="javascript:del({$vo['id']})">删除</a></td>
            </tr>
        </volist>
             <tr>
                <td colspan='10' align='center'>{$Page['pager']}</td>
             </tr>
        </tbody>
    </table>
</body>
</html>